<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org"
       xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5" >

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>发改局</title>

  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome Icons -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/adminlte.min.css">
</head>

<body class="hold-transition light-mode sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed sidebar-collapse">
<div class="wrapper">

  <!-- Logo -->
  <div class="preloader flex-column justify-content-center align-items-center">
    <img class="animation__wobble" src="dist/img/logo.png" alt="AdminLTELogo" height="60" width="60">
  </div>

  <!-- 顶部横向导航 -->
  <nav class="main-header navbar navbar-expand navbar-light" id="navbar">
    <!-- 顶部导航条列表 -->

    <ul class="navbar-nav">
      <!-- 小窗口可以显示导航栏的三条线 -->
        <li class="nav-item">
          <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
          <a href="./index" class="nav-link">首页</a>
        </li>
<!--      企业级联添加导航-->
        <li class="nav-item d-none d-sm-inline-block" id="jltj_li" th:if="${#httpSession.getAttribute('role_id')!=1 && #httpSession.getAttribute('jltj')==0}">
          <a href="#" class="nav-link" id="jltj2">级联添加</a>
        </li>
<!--      管理员级联添加导航-->
        <li class="nav-item d-none d-sm-inline-block" th:if="${#httpSession.getAttribute('role_id')==1}">
          <a href="#" class="nav-link" id="jltj3">级联添加</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
          <a href="#" class="nav-link" id="cpnhqk2">产品月能耗信息</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
          <a href="#" class="nav-link" id="qyxx2">企业信息</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
          <a href="#" class="nav-link" id="xmjbqk2">项目信息</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block" th:if="${#httpSession.getAttribute('role_id') == 1}">
          <a href="#" class="nav-link" id="xmznh2">项目总能耗</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
          <a href="#" class="nav-link" id="xmyj2">项目要件</a>
        </li>

        <li class="nav-item d-none d-sm-inline-block" th:if="${#httpSession.getAttribute('role_id') == 1}">
          <a href="#" class="nav-link" id="nntjqk2">年能耗统计情况</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block" th:if="${#httpSession.getAttribute('role_id') == 1}">
          <a href="#" class="nav-link" id="zcwj2">政策文件</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block" th:if="${#httpSession.getAttribute('role_id') != 1}">
          <a href="#" class="nav-link" id="zcwj4">政策文件</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block" th:if="${#httpSession.getAttribute('role_id') == 1}">
          <a href="#" class="nav-link" id="yhgl2">用户管理</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
          <a href="#" class="nav-link" id="yhzgl2"  style="display: none">用户组管理</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block" th:if="${#httpSession.getAttribute('role_id') == 1}">
          <a href="#" class="nav-link" id="jldwgl2">计量单位管理</a>
        </li>
        <li class="nav-item d-none d-sm-inline-block" th:if="${#httpSession.getAttribute('role_id') == 1}">
          <a href="#" class="nav-link" id="ckyhczrz2">查看用户操作日志</a>
        </li>
<!--        <li class="nav-item d-none d-sm-inline-block" th:if="${#httpSession.getAttribute('role_id') == 1}">-->
<!--          <a href="#" class="nav-link" id="dsdxrw2">定时短信任务</a>-->
<!--        </li>-->
      </ul>

    <!-- 顶部导航右边图标连接 -->
    <ul class="navbar-nav ml-auto">

      <!-- 顶部导航搜索框 -->
      <!-- <li class="nav-item"> -->

      <!-- 顶部外部放大镜图标 -->
      <!-- <a class="nav-link" data-widget="navbar-search" href="#" role="button">
          <i class="fas fa-search"></i>
      </a> -->

      <!-- 顶部搜索框 -->
      <!-- <div class="navbar-search-block">
          <form class="form-inline">
              <div class="input-group input-group-sm">
                  <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
                  <div class="input-group-append">
                      <button class="btn btn-navbar" type="submit">
                          <i class="fas fa-search"></i>
                      </button>
                      <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                          <i class="fas fa-times"></i>
                      </button>
                  </div>
              </div>
          </form>
      </div>

  </li> -->


      <!-- 铃铛提示 -->
      <li class="nav-item dropdown" th:if="${#httpSession.getAttribute('role_id')!=1}">

        <!-- 铃铛提醒图标 -->
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-bell"></i>
          <span class="badge badge-warning navbar-badge" th:if="${#httpSession.getAttribute('size') > 0}">
              <span th:text="${#httpSession.getAttribute('size')}"></span>
          </span>
          <span class="badge navbar-badge" th:if="${#httpSession.getAttribute('size') == 0}">

          </span>
        </a>

        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">

          <!-- 提醒总条数 -->
<!--          <span class="dropdown-item dropdown-header" th:if="${#httpSession.getAttribute('role_id') == 1}">-->
<!--            <span th:if="${#httpSession.getAttribute('size') >0}">-->
<!--              <span th:text="${#httpSession.getAttribute('size')}"></span>-->
<!--            </span>通知-->
<!--          </span>-->
          <span class="dropdown-item dropdown-header" th:if="${#httpSession.getAttribute('role_id')!=1}">
            <span th:if="${#httpSession.getAttribute('size') >0}">
              <span th:text="${#httpSession.getAttribute('size')}"></span>
            </span> 通知
          </span>

          <div class="dropdown-divider"></div>

<!--          <div th:if="${#httpSession.getAttribute('notifys') != null && #httpSession.getAttribute('role_id') == 1}">-->
<!--            <div th:each="item:${#httpSession.getAttribute('notifys')}">-->
<!--              &lt;!&ndash; 第一条提醒 &ndash;&gt;-->
<!--              <a href="#" class="dropdown-item">-->
<!--                <i class="fas fa-envelope mr-2"></i>-->
<!--                <span th:text="${item.message}" style="font-size: 13px;"></span>-->
<!--                <span th:id="${'read_'+item.id}" href="javascript:void(0);" class="float-right text-muted text-sm" th:onclick="'unRead('+ ${item.id} +')'">标记已读</span>-->
<!--              </a>-->

<!--              <div class="dropdown-divider"></div>-->
<!--            </div>-->
<!--          </div>-->

          <div th:if="${#httpSession.getAttribute('notify') != null && #httpSession.getAttribute('role_id') != 1}">

              <!-- 第一条提醒 -->
              <a href="#" class="dropdown-item">
                <i class="fas fa-envelope mr-2"></i>
                <span th:text="${#httpSession.getAttribute('notify').message}" style="font-size: 13px;"></span>
                <span th:id="${'read_'+ #httpSession.getAttribute('notify').id}" href="javascript:void(0);" th:onclick="'unRead('+ ${#httpSession.getAttribute('notify').id}+')'" class="float-right text-muted text-sm">标记已读</span>
              </a>

<!--              <div class="dropdown-divider"></div>-->

          </div>
          <!-- 第二条提醒 -->
<!--          <a href="#" class="dropdown-item">-->
<!--            <i class="fas fa-users mr-2"></i> 8 好友请求-->
<!--            <span class="float-right text-muted text-sm">12 小时前</span>-->
<!--          </a>-->

          <!-- 第三条提醒 -->
<!--          <div class="dropdown-divider"></div>-->
<!--          <a href="#" class="dropdown-item">-->
<!--            <i class="fas fa-file mr-2"></i> 3 新报告-->
<!--            <span class="float-right text-muted text-sm">2 天前</span>-->
<!--          </a>-->

<!--          <div class="dropdown-divider"></div>-->

          <!-- 查看所有提醒 -->
<!--          <a href="#" class="dropdown-item dropdown-footer">查看所有通知-->
<!--          </a>-->

        </div>
      </li>
      <!-- 铃铛图标结束 -->

      <!-- 全屏 -->
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt"></i>
        </a>
      </li>

      <li class="nav-item">
        <a class="nav-link"  href="/logout" role="button">
          退出
        </a>
      </li>
      <!-- <li class="nav-item">
          <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
              <i class="fas fa-th-large"></i>
          </a>
      </li> -->
    </ul>
  </nav>
  <!-- 顶部导航结束-->

  <!--侧边导航容器 -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">

    <!-- 标题Logo -->
    <a href="index" class="brand-link">
      <img src="dist/img/logo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
      <span class="brand-text font-weight-light" id="system_title">发改局</span>
    </a>

    <!-- 右边整体导航 -->
    <div class="sidebar">

      <!-- 当前登入用户 -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block" th:text='${#httpSession.getAttribute("user_name")}'></a>
        </div>
      </div>

      <!-- 右边搜索框 -->
      <!-- <div class="form-inline">
          <div class="input-group" data-widget="sidebar-search">
              <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
              <div class="input-group-append">
                  <button class="btn btn-sidebar">
                      <i class="fas fa-search fa-fw"></i>
                  </button>
              </div>
          </div>
      </div> -->

      <!-- 右边导航栏   -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">

          <!-- 首页 -->
          <li class="nav-item">
            <a href="./index" class="nav-link">
              <i class="nav-icon fas fa-home"></i>
              <p>
                首页
                <!-- <span class="right badge badge-danger">New</span> -->
              </p>
            </a>
          </li>
          <!-- 企业级联添加 -->
          <li class="nav-item" id="jltj_li2" th:if="${#httpSession.getAttribute('role_id')!=1 && #httpSession.getAttribute('jltj')==0}">
            <a href="#" class="nav-link" id="jltj">
              <i class="nav-icon fas fa-plus"></i>
              <p>
                级联添加
                <!-- <span class="right badge badge-danger">New</span> -->
              </p>
            </a>
          </li>
          <!-- 管理员级联添加 -->
          <li class="nav-item" th:if="${#httpSession.getAttribute('role_id')==1}">
            <a href="#" class="nav-link" id="jltj4">
              <i class="nav-icon fas fa-plus"></i>
              <p>
                级联添加
                <!-- <span class="right badge badge-danger">New</span> -->
              </p>
            </a>
          </li>
          <!-- 产品能耗情况 -->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-chart-line"></i>
              <p>
                产品月能耗情况
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item" >
                <a href="#" class="nav-link" id="cpxx">
                  <i class="far fa-circle nav-icon"></i>
                  <p>产品月能耗信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link" id="tjcp">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加产品能耗信息</p>
                </a>
              </li>
              <li class="nav-item" style="display: none">
                <a href="#" class="nav-link" id="cpxg">
                  <i class="far fa-circle nav-icon"></i>
                  <p>修改产品能耗信息</p>
                </a>
              </li>
            </ul>
          </li>
          <!-- 企业管理 -->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon far fa-registered"></i>
              <p>
                企业管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="#" class="nav-link" id="qyxx">
                  <i class="far fa-circle nav-icon"></i>
                  <p>企业信息</p>
                </a>
              </li>
              <li class="nav-item" id="tjqy_li" th:if="${#httpSession.getAttribute('role_id') !=1 && #httpSession.getAttribute('jltj') == 0}">
                <a href="#" class="nav-link" id="tjqy">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加企业</p>
                </a>
              </li>
              <li class="nav-item" th:if="${#httpSession.getAttribute('role_id') ==1}">
                <a href="#" class="nav-link" id="tjqy3" >
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加企业</p>
                </a>
              </li>
              <li class="nav-item" style="display: none">
                <a href="#" class="nav-link" id="qyxg">
                  <i class="far fa-circle nav-icon"></i>
                  <p>企业修改</p>
                </a>
              </li>
            </ul>
          </li>
          <!-- 项目基本情况 -->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-project-diagram"></i>
              <p>
                项目基本情况
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="#" class="nav-link" id="xmxx">
                  <i class="far fa-circle nav-icon"></i>
                  <p>项目信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link" id="xmznh" th:if="${#httpSession.getAttribute('role_id') == 1}">
                  <i class="far fa-circle nav-icon"></i>
                  <p>项目总能耗</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link" id="tjxm">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加项目</p>
                </a>
              </li>
              <li class="nav-item" style="display: none">
                <a href="#" class="nav-link" id="xmxg">
                  <i class="far fa-circle nav-icon"></i>
                  <p>项目修改</p>
                </a>
              </li>
            </ul>
          </li>
          <!-- 项目要件 -->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-file-archive"></i>
              <p>
                项目要件
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="#" class="nav-link" id="xmyjxx">
                  <i class="far fa-circle nav-icon"></i>
                  <p>项目要件信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link" id="tjxmyj">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加项目要件</p>
                </a>
              </li>
              <li class="nav-item" style="display: none">
                <a href="#" class="nav-link" id="xgxmyj">
                  <i class="far fa-circle nav-icon"></i>
                  <p>修改项目要件</p>
                </a>
              </li>
            </ul>
          </li>

          <!-- 年能耗统计情况 -->
          <li class="nav-item" th:if="${#httpSession.getAttribute('role_id') == 1}">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-chart-line"></i>
              <p>
                年能耗统计情况
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="#" class="nav-link" id="nhxx">
                  <i class="far fa-circle nav-icon"></i>
                  <p>能耗信息</p>
                </a>
              </li>
              <li class="nav-item" style="display: none;">
                <a href="#" class="nav-link" id="tjcpnh">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加能耗信息</p>
                </a>
              </li>
              <li class="nav-item" style="display: none;">
                <a href="#" class="nav-link" id="cpnhxg">
                  <i class="far fa-circle nav-icon"></i>
                  <p>修改能耗信息</p>
                </a>
              </li>
            </ul>
          </li>


          <!-- 政策文件发布 -->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-file-invoice"></i>
              <p>
                政策文件
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="#" class="nav-link" id="ckzcwj" th:if="${#httpSession.getAttribute('role_id') == 1}">
                  <i class="far fa-circle nav-icon"></i>
                  <p>查看政策文件</p>
                </a>
              </li>
              <li class="nav-item" >
                <a href="#" class="nav-link" id="ckzcwj3" th:if="${#httpSession.getAttribute('role_id') != 1}">
                  <i class="far fa-circle nav-icon"></i>
                  <p>查看政策文件</p>
                </a>
              </li>
              <li class="nav-item" th:if="${#httpSession.getAttribute('role_id') == 1}">
                <a href="#" class="nav-link" id="zcwjfb">
                  <i class="far fa-circle nav-icon"></i>
                  <p>政策文件发布</p>
                </a>
              </li>
              <li class="nav-item"  style="display: none">
                <a href="#" class="nav-link" id="xgzcwj">
                  <i class="far fa-circle nav-icon"></i>
                  <p>修改政策文件</p>
                </a>
              </li>
            </ul>
          </li>

          <!-- 用户管理 -->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-user"></i>
              <p>
                用户管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item" th:if="${#httpSession.getAttribute('role_id') == 1}">
                <a href="#" class="nav-link" id="yhxx">
                  <i class="far fa-circle nav-icon"></i>
                  <p>用户信息</p>
                </a>
              </li>
              <li class="nav-item" th:if="${#httpSession.getAttribute('role_id') == 1}">
                <a href="#" class="nav-link" id="tjyh">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加用户</p>
                </a>
              </li>
              <li class="nav-item" style="display: none">
                <a href="#" class="nav-link" id="yhxg">
                  <i class="far fa-circle nav-icon"></i>
                  <p>用户修改</p>
                </a>
              </li>
              <li class="nav-item" th:if="${#httpSession.getAttribute('role_id') == 2}">
                <a href="#" class="nav-link" id="yhxg3">
                  <i class="far fa-circle nav-icon"></i>
                  <p>用户修改</p>
                </a>
              </li>
            </ul>
          </li>

          <!-- 用户组管理 -->
          <!-- <li class="nav-item">
              <a href="#" class="nav-link">
                  <i class="nav-icon fas fa-users"></i>
                  <p>
                      用户权限组(1)
                      <i class="fas fa-angle-left right"></i>
                  </p>
              </a>
              <ul class="nav nav-treeview">
                  <li class="nav-item">
                      <a href="#" class="nav-link" id="yhzxx">
                          <i class="far ion-person nav-icon"></i>
                          <p>用户组信息</p>
                      </a>
                  </li>
                  <li class="nav-item">
                      <a href="#" class="nav-link" id="tjyhz">
                          <i class="far ion-person-add nav-icon"></i>
                          <p>添加用户组</p>
                      </a>
                  </li>
                  <li class="nav-item">
                      <a href="#" class="nav-link" id="yhzxg">
                          <i class="far ion-edit nav-icon"></i>
                          <p>用户组修改</p>
                      </a>
                  </li>
              </ul>
          </li> -->

          <!-- 计量单位管理 -->
          <li class="nav-item" th:if="${#httpSession.getAttribute('role_id') == 1}">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-edit"></i>
              <p>
                计量单位管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="#" class="nav-link" id="jldwxx">
                  <i class="far fa-circle nav-icon"></i>
                  <p>计量单位信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link" id="tjjldw">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加计量单位</p>
                </a>
              </li>
              <li class="nav-item" style="display: none">
                <a href="#" class="nav-link" id="xgjldw">
                  <i class="far fa-circle nav-icon"></i>
                  <p>修改计量单位</p>
                </a>
              </li>
            </ul>
          </li>

          <!-- 查看通知提醒 -->
          <li class="nav-item" th:if="${#httpSession.getAttribute('role_id')==1}">
            <a href="#" class="nav-link" id="tztx">
              <i class="nav-icon far fa-bell"></i>
              <span class="badge badge-warning navbar-badge" th:if="${#httpSession.getAttribute('size') > 0}">
              <span  th:id="${'notify_id'}" th:text="${#httpSession.getAttribute('size')}"></span>
              </span>
                  <span class="badge navbar-badge" th:if="${#httpSession.getAttribute('size') == 0}">

              </span>
              <p>通知提醒</p>
            </a>
          </li>

          <!-- 查看用户操作日志 -->
          <li class="nav-item" th:if="${#httpSession.getAttribute('role_id') == 1}">
            <a href="#" class="nav-link" id="cjyhrz">
              <i class="nav-icon 	fas fa-file-alt"></i>
              <p>查看用户操作日志</p>
            </a>
          </li>
          <!-- 系统信息管理 -->
          <li class="nav-item" th:if="${#httpSession.getAttribute('role_id') == 1}">
            <a href="#" class="nav-link" id="xtxxgl">
              <i class="nav-icon fas fa-cog"></i>
              <p>系统信息管理</p>
            </a>
          </li>
          <!-- 定时短信任务 -->
          <li class="nav-item">
            <a href="/logout" class="nav-link" id="logout">
              <i class="nav-icon fas fa-sign-out-alt"></i>
              <p>登出</p>
            </a>
          </li>
        </ul>
      </nav>
      <!-- 右边导航栏结束 -->
    </div>
    <!-- 侧边导航结束 -->
  </aside>

  <!-- 主内容容器 -->
  <div class="content-wrapper" style="margin-top: 0px">
    <!-- 主题内容正文 -->
    <iframe style="width: 100%;height: 789px;border-style: none;" src="/content" id="iframeid"></iframe>
    <!-- 主题内容正文结束 -->
  </div>

  <!-- 版权信息 -->
  <footer class="main-footer">
    <strong id="copyright">Copyright &copy; 2021 <a href="http://www.chengzhouyun.com/" target="_blank">澄州云</a>.</strong> &nbsp;&nbsp;&nbsp;&nbsp;
    <span id="record">辽ICP备12347869号-2</span>&nbsp;&nbsp;&nbsp;&nbsp; <span id="bl">营业执照</span>
    <div class="float-right d-none d-sm-inline-block">
      <b id="version">Version 1.0</b>
    </div>
  </footer>

</div>

<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- overlayScrollbars -->
<script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.js"></script>

<!-- PAGE PLUGINS -->
<!-- jQuery使用到的组件 -->
<script src="plugins/jquery-mousewheel/jquery.mousewheel.js"></script>
<script src="plugins/raphael/raphael.min.js"></script>
<script src="plugins/jquery-mapael/jquery.mapael.min.js"></script>
<script src="plugins/jquery-mapael/maps/usa_states.min.js"></script>
<!-- ChartJS -->
<script src="plugins/chart.js/Chart.min.js"></script>

<!--  AdminLTE使用的JS -->
<script src="dist/js/demo.js"></script>
<!-- 首页仪表盘 -->
<script src="dist/js/pages/dashboard3.js"></script>
</body>

<script>

  $(function(){
    // 获取网站系统信息
    $.get("/sys/system/1",function(data){
      if(data.statusCode == 200){

        $("#copyright").html(data.object.copyright)
        $("#record").html(data.object.record)
        $("#bl").html(data.object.businesslicense)
        $("#version").text(data.object.version)
        $("#system_title").text(data.object.title)
      }
    })
  })

  // 标记提醒已读
  function unRead(id){
    // alert("id:"+ id)
    $.ajax({
      url:"/notify/usr/notify/"+id,
      type:"PUT",
      contentType: 'application/json',
      dataType:"json",
      success: function(res){
        console.log(res)
        if(res.statusCode == 200) {

          $("#read_"+id).text('已读')

        } else{
          alert(res.errorMsg);
        }

      }
    })
  }

  $(function () {

    // 初始显示是否隐藏顶部导航
    var li_arr = $(".navbar-nav > .d-none");
    var sidebar_collapse = document.getElementsByClassName('sidebar-collapse')
    for(var i = 0; i < li_arr.length; i++){
      if (sidebar_collapse.length == 0 && $(window).width() < 1877) {
        li_arr[i].style = "display:none!important";
      }else if(sidebar_collapse.length > 0 && $(window).width() < 1684){
        li_arr[i].style = "display:none!important";
      }else {
        li_arr[i].style = "";
      }
    }

    // 窗口尺寸变动 进行隐藏/显示
    $(window).resize(function(){
        var li_arr = $(".navbar-nav > .d-none");
        var sidebar_collapse = document.getElementsByClassName('sidebar-collapse')
        for(var i = 0; i < li_arr.length; i++){
          if (sidebar_collapse.length == 0 && $(window).width() < 1877) {
            li_arr[i].style = "display:none!important";
          }else if(sidebar_collapse.length > 0 && $(window).width() < 1684){
            li_arr[i].style = "display:none!important";
          }else {
            li_arr[i].style = "";
          }
        }
    })


    //左侧导航部分注册事件
    // 企业信息     注册点击事件
    $("#qyxx").on("click", function () {
      $("#iframeid").attr("src", "./page/EnterpriseInfo");
    });
    // 添加企业信息     注册点击事件
    $("#tjqy").on("click", function () {
      $("#iframeid").attr("src", "./page/EnterpriseAdd");
    });
    // 添加企业信息     注册点击事件
    $("#tjqy3").on("click", function () {
      $("#iframeid").attr("src", "./page/EnterpriseAdd");
    });
    // 企业信息修改     注册点击事件
    $("#qyxg").on("click", function () {
      $("#iframeid").attr("src", "./page/EnterpriseChange");
    });


    // 项目信息     注册点击事件
    $("#xmxx").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectInfo");
    });
    // 项目信息     注册点击事件
    $("#xmznh").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectTotalEn");
    });


    // 添加项目信息     注册点击事件
    $("#tjxm").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectAdd");
    });
    // 项目修改     注册点击事件
    $("#xmxg").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectChange");
    });


    // 项目要件信息     注册点击事件
    $("#xmyjxx").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectDocmentInfo");
    });
    // 添加项目要件信息     注册点击事件
    $("#tjxmyj").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectDocmentAdd");
    });
    // 修改项目要件信息     注册点击事件
    $("#xgxmyj").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectDocmentChange");
    });


    // 产品信息     注册点击事件
    $("#cpxx").on("click", function () {
      $("#iframeid").attr("src", "./page/ProductInfo");
    });
    // 添加产品信息     注册点击事件
    $("#tjcp").on("click", function () {
      $("#iframeid").attr("src", "./page/ProductAdd");
    });
    // 产品修改     注册点击事件
    $("#cpxg").on("click", function () {
      $("#iframeid").attr("src", "./page/ProductChange");
    });


    // 能耗信息     注册点击事件
    $("#nhxx").on("click", function () {
      $("#iframeid").attr("src", "./page/YEC_Info");
    });
    // 添加产品能耗     注册点击事件
    $("#tjcpnh").on("click", function () {
      $("#iframeid").attr("src", "./page/YEC_Add");
    });
    // 产品能耗修改     注册点击事件
    $("#cpnhxg").on("click", function () {
      $("#iframeid").attr("src", "./page/YEC_Change");
    });


    // 用户信息     注册点击事件
    $("#yhxx").on("click", function () {
      $("#iframeid").attr("src", "./page/UserInfo");
    });
    // 添加用户信息     注册点击事件
    $("#tjyh").on("click", function () {
      $("#iframeid").attr("src", "./page/UserAdd");
    });
    // 用户修改     注册点击事件
    $("#yhxg").on("click", function () {
      $("#iframeid").attr("src", "./page/UserChange");
    });

    // 企业用户修改     注册点击事件
    $("#yhxg3").on("click", function () {
      $("#iframeid").attr("src", "./page/UserChange2");
    });



    // 用户组信息     注册点击事件
    $("#yhzxx").on("click", function () {
      $("#iframeid").attr("src", "./page/UserGroupInfo");
    });
    // 添加用户组信息     注册点击事件
    $("#tjyhz").on("click", function () {
      $("#iframeid").attr("src", "./page/UserGroupAdd");
    });
    // 用户组修改     注册点击事件
    $("#yhzxg").on("click", function () {
      $("#iframeid").attr("src", "./page/UserGroupChange");
    });


    // 查看政策文件     注册点击事件
    $("#ckzcwj").on("click", function () {
      $("#iframeid").attr("src", "./page/PolicyFileInfo");
    });
    // 政策文件发布     注册点击事件
    $("#zcwjfb").on("click", function () {
      $("#iframeid").attr("src", "./page/PolicyFileAdd");
    });
    // 修改政策文件     注册点击事件
    $("#xgzcwj").on("click", function () {
      $("#iframeid").attr("src", "./page/PolicyFileChange");
    });


    // 计量单位信息     注册点击事件
    $("#jldwxx").on("click", function () {
      $("#iframeid").attr("src", "./page/Unit_Info");
    });
    // 添加计量单位信息     注册点击事件
    $("#tjjldw").on("click", function () {
      $("#iframeid").attr("src", "./page/Unit_Add");
    });
    // 修改计量单位信息     注册点击事件
    $("#xgjldw").on("click", function () {
      $("#iframeid").attr("src", "./page/Unit_Change");
    });

    // 级联添加  注册事件
    $("#jltj").on("click", function () {
      $("#iframeid").attr("src", "./page/jltj");
    });



    //用户操作日志
    $("#cjyhrz").on("click", function () {
      $("#iframeid").attr("src", "./page/UserLog");
    });

    //短信定时任务
    // $("#dxdsrw").on("click", function () {
    //   $("#iframeid").attr("src", "./page/ScheduledTasksMessage");
    // });


    // 首页顶部导航注册事件

    //企业信息 注册事件
    $("#qyxx2").on("click", function () {
      $("#iframeid").attr("src", "./page/EnterpriseInfo");
    });
    // 项目基本情况 注册事件
    $("#xmjbqk2").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectInfo");
    });
    // 项目总能耗 注册事件
    $("#xmznh2").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectTotalEn");
    });


    // 项目要件 注册事件
    $("#xmyj2").on("click", function () {
      $("#iframeid").attr("src", "./page/ProjectDocmentInfo");
    });
    // 产品能耗情况 注册事件
    $("#cpnhqk2").on("click", function () {
      $("#iframeid").attr("src", "./page/ProductInfo");
    });
    // 年能耗统计情况 注册事件
    $("#nntjqk2").on("click", function () {
      $("#iframeid").attr("src", "./page/YEC_Info");
    });
    // 政策文件 注册事件
    $("#zcwj2").on("click", function () {
      $("#iframeid").attr("src", "./page/PolicyFileInfo");
    });

    // 政策文件 注册事件
    $("#ckzcwj3").on("click", function () {
      $("#iframeid").attr("src", "./page/PolicyFileInfo2");
    });

    // 政策文件 注册事件
    $("#zcwj4").on("click", function () {
      $("#iframeid").attr("src", "./page/PolicyFileInfo2");
    });



    // 用户管理 注册事件
    $("#yhgl2").on("click", function () {
      $("#iframeid").attr("src", "./page/UserInfo");
    });


    // 用户组管理 注册事件
    $("#yhzgl2").on("click", function () {
      $("#iframeid").attr("src", "./page/UserGroupInfo");
    });

    // 计量单位管理 注册事件
    $("#jldwgl2").on("click", function () {
      $("#iframeid").attr("src", "./page/Unit_Info");
    });

    // 顶部级联添加  注册事件
    $("#jltj2").on("click", function () {
      $("#iframeid").attr("src", "./page/jltj");
    });
    $("#jltj3").on("click", function () {
      $("#iframeid").attr("src", "./page/jltj");
    });
    $("#jltj4").on("click", function () {
      $("#iframeid").attr("src", "./page/jltj");
    });

    //用户操作日志
    $("#ckyhczrz2").on("click", function () {
      $("#iframeid").attr("src", "./page/UserLog");
    });

    //短信定时任务
    // $("#dsdxrw2").on("click", function () {
    //   $("#iframeid").attr("src", "./page/ScheduledTasksMessage");
    // });


    // 通知提醒
    $("#tztx").on("click",function(){
      $("#iframeid").attr("src", "./page/user_notify");
    })

    // 系统信息管理
    $("#xtxxgl").on("click",function(){
      $("#iframeid").attr("src", "./page/systeminfo/1");
    })
  });
</script>

</html>
